< previous page page_83 next page >

Page 83
Table 4.5 Naming Standards for Controls.
ObjectPrefixExample
FormfrmfrmMail
Check boxchkchkLanguages
Combo boxcbocboStates
Command buttoncmdcmdSave
DatadatdatMail
Directory list boxdirdirSource
Drive list boxdrvdrvUserDrives
File list boxfilfilSource
FramefrafraCards
GridgrdgrdPartList
Horizontal scrollbarhsbhsbPartList
ImageimgimgIcon
LabellbllblFirstName
LinelinlinSeparate
List boxlstlstCountries
MenumnumnuFile
OLEoleoleClient
Option buttonoptoptSex
Picture boxpicpicEmployee
ShapeshpshpRectangle
Text boxtxttxtFirstName
TimetmrtmrAlarm
Vertical scrollbarvsbvsbPartList

Always use these prefixes in Visual Basic applications. In Appendix A, VBA Programming Standards, youll find recommended programming standards for Visual Basic applications. Its strongly suggested that you follow these standards at all times.

 
< previous page page_83 next page >

If you like this book, buy it!